#include <QApplication>
#include <QString>

class Demo
{
public:
    Demo() {
        pString = new QString("aaaa");
    }

    QString* Get() const {
        return pString;
    }

    void Clear() const {
        pString->clear();
        //pString = NULL;
    }

private:
    QString *pString;
};

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    return a.exec();
}
